package com.phpxiu.app.adapter.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;

import com.phpxiu.app.kkylive.R;
import com.phpxiu.app.model.MemberInfo;
import com.phpxiu.app.view.custom.FrescoImageView;

/**
 * Created by WuJinZhou on 2016/5/13.
 */
public class CommonOnlineViewHolder extends RecyclerView.ViewHolder {
    private MemberInfo online;
    public View contentView;
    public FrescoImageView head;
    public ImageView lvlIcon;

    public CommonOnlineViewHolder(View itemView) {
        super(itemView);
        contentView=itemView;
        head=(FrescoImageView)itemView.findViewById(R.id.common_online_user_head_view);
        lvlIcon=(ImageView)itemView.findViewById(R.id.common_online_user_lvl_icon);
    }

    public MemberInfo getOnline() {
        return online;
    }

    public void setOnline(MemberInfo online) {
        this.online = online;
        contentView.setTag(online);
    }

    public void updateLvIcon(int lv){

    }
}
